<html>
<body>
Reports 'declaringClass' property calls on Enum that will lead to compilation error since 1.9.
<p>'Enum.getDeclaringClass' is among "hidden" Java functions which aren't normally visible by resolve. However, it's visible via synthetic
    property that is a front-end bug.</p>
<p><b>More details:</b> <a href="https://youtrack.jetbrains.com/issue/KT-49653">KT-49653 Deprecate and remove Enum.declaringClass synthetic
    property</a></p>
<p>The quick-fix replaces a call with 'declaringJavaClass'.</p>
<p><b>Example:</b></p>
<pre><code>
  fun &lt;E: Enum&lt;E&gt;&gt; foo(values: Array&lt;E&gt;) {
    EnumSet.noneOf(values.first().declaringClass)
  }
</code></pre>

<p>After the quick-fix is applied:</p>
<pre><code>
  fun &lt;E: Enum&lt;E&gt;&gt; foo(values: Array&lt;E&gt;) {
    EnumSet.noneOf(values.first().declaringJavaClass)
  }
</code></pre>
<!-- tooltip end -->
<p>This inspection only reports if the Kotlin language level of the project or module is 1.7 or higher.</p>
</body>
</html>